﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DAL
{
    public class OrderInvoice
    {
        public static bool Insert(int orderId,string invoiceCode,int adminId)
        {
            return DbHelper.ExecuteNonQuery("[dbo].[p_orderInvoice_insert]", orderId, invoiceCode, adminId);
        }

        public static bool Update(int orderId,string invoiceCode,int modifyAdminId)
        {
            return DbHelper.ExecuteNonQuery("[dbo].[p_orderInvoice_update]", orderId, invoiceCode, modifyAdminId);
        }

        public static bool insertUpdate(int orderId, string invoiceCode, int adminId)
        {
            return DbHelper.ExecuteNonQuery("[dbo].[p_orderInvoice_insertUpdate]", orderId, invoiceCode, adminId);
        }
    }
}
